package com.qf.consumer.api;

import com.qf.consumer.api.impl.ProviderServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "provider",fallbackFactory = ProviderServiceImpl.class)
public interface ProviderService {

    @GetMapping("/provide/{str}")
    String provide(@PathVariable String str);

    @GetMapping("/provide2/{str}")
    public String provide2(@PathVariable String str);

    @PostMapping("/test")
    public String post();
}
